<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/check.js"></script>
<script>
$(function(){
	$('td').tt.ps();	
});
/*
$('#checkall').live('click', checked);
function checked() {
if (this.checked == true) {
$('.check').check();
} else {
$('.check').uncheck();
}
}
//sort排序
$('#sort').click(function(){
$('#table-list').ajaxSubmit({
url:"/index.php/Admin/Menu/sort",
success:function(){
alert("排序完成！");
refresh_window();
}
});
});
//delete删除
$('#delete').click(function(){
$.dialog.confirm('你确定要删除吗？', function() {
$('#table-list').ajaxSubmit({
url:"/index.php/Admin/Menu/del",
success:function(data){
alert(data.info);
refresh_window();
}
});
}, function() {
});
});
}); 
*/
</script>
</head>
<body>
<form action="">
<table>
<thead>
<tr><th><input name="ids" type="checkbox" /></th><th>ID</th><th>MODEL_name</th><th>MODEL_action</th></tr>
</thead>
<tbody>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><tr><td><input name="ids[]" type="checkbox" value="<?php echo ($row["model_id"]); ?>" /></td><td><?php echo ($row["model_id"]); ?></td><td><?php echo ($row["model_name"]); ?></td><td><a href="__URL__/edit/id/<?php echo ($row["model_id"]); ?>">编辑</a><span>|</span><a href="__GROUP__/ModelSpec/index/id/<?php echo ($row["model_id"]); ?>">属性管理</a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
<tfoot><tr><td><input type="button" value="删除" class="button" id="del"></td></tr></tfoot>
</table>
</form>
</body>
</html>